class AddFavorites < ActiveRecord::Migration
  def self.up
    (1..20).each do |id|
      Favorite.create(:weibo_id=> id,:user_id => 1)
    end
    (1..20).each do |id|
      Favorite.create(:weibo_id=> id,:user_id => 2)
    end
  end

  def self.down
    Favorite.destroy_all
  end
end
